﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace PortableVersion
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(params string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var frm = new Form1();
            var noParams = false;
            if (args.Count() == 2)
            {
                switch (args[0])
                {
                    case "/CheckIn":
                        frm.CheckIn(args[1]);
                        break;
                    case "/CheckOut":
                        frm.CheckOut(args[1]);
                        break;
                    default:
                        noParams = true;
                        break;
                }
            }
            else
                noParams = true;
            if (noParams)
                Application.Run(frm);
            else
                Application.Run();
        }
    }
}
